package com.wutong.erb.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 标签表
 * @author wutong
 */
@TableName(value = "tag", autoResultMap = true)
@Data
@EqualsAndHashCode(callSuper = true)
public class Tag extends BaseEntity {
    @TableField("name")
    @NotEmpty(message = "标签名称不能为空")
    private String name;
}